/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package VideoRental.src;

/**
 * @author andreth salazar 
 * @author vicente santacoloma
 */
public abstract class ArticuloAudioVisual extends Articulo {
    
    protected String[] Actores;
    private static int[] CondicionPrestamo = {3,10,5};
    

    public String[] getActores() {
        return Actores;
    }

    public void setActores(String[] Actores) {
        this.Actores = Actores;
    }
    
    protected void chequearGenero() throws GeneroInvalidoException{
        if(! (this.Genero.equalsIgnoreCase("Aventura")||
              this.Genero.equalsIgnoreCase("Accion") ||
              this.Genero.equalsIgnoreCase("Deportes") ||
              this.Genero.equalsIgnoreCase("Estrategia")) ){
            throw new GeneroInvalidoException();
        }
    }
    
    public int getPrecioPrestamo(){
        return this.CondicionPrestamo[1];
    }
    
    public int getDiasPrestamo(){
        return this.CondicionPrestamo[0];
    }
    public int getMultaDia()
    {
        return this.CondicionPrestamo[2];
    }
    
    
}
